import { createApp } from "vue";

import App from "./App.vue";
import Icon from "@yk/components/Icon";
import "@yk/theme-chalk/src/index.scss";
import Tree from "@yk/components/tree/index";
import Checkbox from "@yk/components/check-box";
import Button from "@yk/components/button";
import Input from "@yk/components/input";
import Upload from "@yk/components/upload";
import Calendar from "@yk/components/calendar";
import VitrtualScrollList from "@yk/components/vitrtual-scroll-list";
import { FormItem, Form } from "@yk/components/form";
const plugins = [
  Icon,
  Tree,
  Checkbox,
  Button,
  Input,
  FormItem,
  Form,
  Upload,
  Calendar,
  VitrtualScrollList,
];

const app = createApp(App);
plugins.forEach((plugin) => {
  app.use(plugin);
});
app.mount("#app");
// 图片懒加载插件
// import { createApp } from "vue";
// import App from "./App.vue";
// import LazyloadPlugin from "./lazyload/index";
// const app = createApp(App, {});
// app.use(LazyloadPlugin, { container: document.querySelector("body") });
// app.mount("#app");
